 // 定义一个地图类 需要生成一个地图 
 export default class Domain {
    constructor() {
        this.ele = document.createElement("div") //  生成地图的div
        this.setStyle();
    }
    setStyle() {
        this.ele.style.width = "600px"
        this.ele.style.height = "600px";
        this.ele.style.border = "1px solid";
        this.ele.style.position = "relative";
        this.ele.style.margin = "0 auto";
        document.body.appendChild(this.ele);
    }
}